 import java.util.Scanner;

 public class PP34
 {
    public static void main(String[] args)
    {
       double number, max, min;

       Scanner scan = new Scanner(System.in);
      
       System.out.print("Enter the numble :");
       number = scan.nextDouble();

       max = Math.ceil(number);
       min = Math.floor(number);

       System.out.println("Max:" + max);
       System.out.println("Min:" + min);
    }
 }
